<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="keywords" content="licence,informatique,web,html" />
<meta name="description" content="Site web e-commerce" />
<meta name="author" content="Charles HURTEVENT Quentin LAUJAC" />
<link rel="stylesheet" href="style.css" />
<script type="text/javascript" src="fonctions.js"></script>
<title>Lepino compagny</title>
</head>
<body>
	<div id="bloc_page">
		<div id="banniere_ligne">
			<a onClick="window.close()" class="bouton_quit">Quitter</a>
		</div>
		
		<section>
			<article>
				<form id="detailsCommandes" action="" onsubmit="" method="post">
					<table width="100%">
						<th>Type article</th>
						<th>Libellé article</th>
						<th>Prix unitaire</th>
						<th>Quantité commandée</th>
						<th>Montant</th>
						<?php
						require_once ("../persistance/dao/ArticleDAO.php");
						require_once ("../services/ClientService.php");
						require_once ("../bean/data/Commande.php");
						include './interdiction_acces.php';
						
						session_start();
						
						$listCommande = $_SESSION ['listCommande'];
						$commande = $listCommande[$_SESSION['idCommande']];
						echo "<tr>";
						foreach($commande->getListArticle() as $article){
							echo "<td>".$article->getLibelleTypeArticle()."</td>";
							echo "<td>".$article->getLibelle()."</td>";
							echo "<td>".$article->getPrixUnitaire()." &#8364</td>";
							echo "<td>".$article->getQuantiteCommandee()."</td>";
							echo "<td>".$article->getPrixUnitaire() *  $article->getQuantiteCommandee()." &#8364</td>";
							echo "</tr>";
						}
						?>
					</table>
			</article>
		</section>
	</div>
</body>
</html>
